export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { path: '/user', routes: [{ name: '登录', path: '/user/login', component: './user/Login' }] },
      { component: './404' },
    ],
  },
  {
    path: '/demo',
    layout: false,
    routes: [
      {
        path: '/demo',
        routes: [{ name: 'EChartsDEMO', path: '/demo/charts', component: './Demo/Charts' }],
      },
      { component: './404' },
    ],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      { path: '/admin/sub-page', name: '二级管理页', icon: 'smile', component: './Welcome' },
      { component: './404' },
    ],
  },
  { name: '查询表格', icon: 'table', path: '/list', component: './TableList' },
  { icon: 'table', path: '/basic-list/api/models/model-design/*', component: './ModelDesign' },
  { icon: 'table', path: '/basic-list/api/demo/otherpage/*', component: './Demo/Charts' },
  { icon: 'table', path: '/basic-list/api/*/*', component: './BasicList/component/Page' },
  { icon: 'table', path: '/basic-list/api/*', component: './BasicList' },
  {
    icon: 'table',
    path: '/basic-report/api/reports/report-design/*',
    component: './SqlReportDesign',
  },

  {
    icon: 'barchart',
    path: '/basic-sqlrpt',
    redirect: '/welcome',
  },
  {
    icon: 'barchart',
    path: '/basic-sqlrpt/*/*',
    component: './SqlReportPage',
  },
  { path: '/', redirect: '/welcome' },
  { component: './404' },
];
